<?php

/*
|--------------------------------------------------------------------------
| Home Routes
|--------------------------------------------------------------------------
|
| 前台操作
|
*/

Route::group(['namespace' => 'Home'], function () {
    Route::get('/index','IndexController@index');
    //详情页面
    Route::get('/post/{post}/show', 'PostController@show');
    //搜索内容
    Route::get('/search', 'IndexController@search');
    //代码知识
    Route::get('/note/list', 'NoteController@noteList');
    //全部分类
    Route::get('type/list', 'TypeController@getTypesList');
    //分类查找
    Route::get('/type/{id}/list', 'TypeController@getList');
    //标签查找
    Route::get('/tags/{id}/list',  'TagsController@getList');
    //全部标签
    Route::get('/tags/list', 'TagsController@getTagsList');
    //旅行笔记
    Route::get('/outdoors/list', 'OutdoorsController@outdoorsList');
    //带队出行
    Route::get('/outdoors/lead', 'OutdoorsController@outdoorsLead');
    //自由行
    Route::get('/outdoors/free', 'OutdoorsController@outdoorsFree');
    //生活记录
    Route::get('/life/list', 'LifeController@lifeList');
    //简历
    Route::get('/resume', 'IndexController@resume');
});

